<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	<ui:composition template="/templates/template.xhtml">
			<ui:define name="pageTitle">PLCWeb Saúde</ui:define>
			<ui:define name="pageHeader">Login Usuario</ui:define>
			<ui:define name="body">
			<form id="Form" action="#{logoutUsuario}"/>
			<h:head>
			<title>Bem-Vindo ao PLCWeb</title>
			</h:head>
			<h:body>
			<h:form jsfc="h:form" id="Form">				
			<h:panelGrid columns="2">	
				<h:outputText value="#{msg.nome}" />				
				<h:inputText value="#{loginBean.loginusuario.nmloginusuario}" required="true" requiredMessage="Informe o usuario."/>
				
				<h:outputText value="#{msg.senha}" />				
				<h:inputSecret value="#{loginBean.loginusuario.snloginusuario}" required="true" requiredMessage="Informe a senha."/>
				
				<h:outputText value="#{msg.empresa} " />  
                <p:selectOneMenu value="#{selectEmpresa.empresa}" >
                <f:selectItem itemLabel="TODAS" itemValue="" /> 
                <f:selectItems value="#{selectEmpresa.empresacliente}" /> 
                </p:selectOneMenu>
                
			</h:panelGrid>
			
			<h:commandButton value="#{msg.entrar}" action="#{loginBean.logarUsuario}"/>
			<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />  
			</h:form>
			</h:body>						
			</ui:define>
	</ui:composition>

</html>